<?php
session_start();
class LogOutController{

	
	function logOut(){
		session_destroy();
		echo "Successfully Logged Out!<br />";
		echo "You wll be redirected within a second.";
				?>
				<script type="text/javascript">
				<!--
				function delayer(){
					window.location = "login.php";
				}
				$("#loginform").html("");
				setTimeout('delayer()', 1000);
				//-->
			</script>
			<?php
		die;

	}
	
}

	$a = new LogOutController;
	$a->logOut();


	
?>